from sqlalchemy import Column, BigInteger, String, SmallInteger
from common.models.base import AuditBase


class Account(AuditBase):
    account_name = Column(String(255), nullable=False, index=True)
    password = Column(String(255), nullable=False)
    user_id = Column(BigInteger, nullable=True)
    state = Column(SmallInteger, nullable=True, default=0)  # 0正常,1禁用,2注销
